package com.woniuxy.educationplatform.service;

import com.woniuxy.educationplatform.bean.VideoBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IVideoService {
    /**
     * 查询所有的视频
     * @return
     */
    List<VideoBean> findAll();

    /**
     * 根据id查询视频
     * @param id
     * @return
     */
    VideoBean findById(Long id);

    void saveVideoBean ( VideoBean videoBean);

    void deleteVideoBean(Long id);

    void update(VideoBean videoBean);

    List<VideoBean> findOneByCondition( VideoBean videoBean);
}
